package com.soladhoc.annonces.client.view;

import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.Widget;
import com.gwtplatform.mvp.client.ViewWithUiHandlers;
import com.soladhoc.annonces.client.AnnoncesAdhoc;
import com.soladhoc.annonces.client.resources.Resources;
import com.soladhoc.annonces.client.ui.AnnoncesUiHandlers;

public abstract class AbstractAnnonceListView extends
		ViewWithUiHandlers<AnnoncesUiHandlers> implements AnnonceListView {

	final Widget widget;
	final Resources resources;
	
	public AbstractAnnonceListView(Widget widget, Resources resources) {
		this.widget = initUI();
		this.resources = AnnoncesAdhoc.ginjector.getResources();
	}
	
	abstract Widget initUI();

	@Override
	public Widget asWidget() {
		return widget;
	}

}
